/*
 * One
 * created by qinghong
 * 2016-7-7
 */

import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Navigator
} from 'react-native';

import OneTabBar from './OneApp/Main/OneTabBar'

class RN_One extends Component {
    render() {
        var defaultName = 'OneTabBar';
        var defaultComponent = OneTabBar;
        return (
            <Navigator
                initialRoute={{ name: defaultName, component: defaultComponent }}
                configureScene={ (route) => {
                    return Navigator.SceneConfigs.HorizontalSwipeJump;
                }}
                renderScene={ (route, navigator) => {
                    let Component = route.component;
                    return <Component {...route.params} navigator={navigator}/>
                }}
            />
        );
    }
}

AppRegistry.registerComponent('RN_One', () => RN_One);
